package domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;


@Entity
@DiscriminatorValue("logistic manager")
public class LogisticManager extends Role implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@OneToMany
	private List<Schedule> schedules = new ArrayList<Schedule>();
	
	public List<Schedule> getSchedules() {
		return schedules;
	}

	public void addSchedules(Schedule schedule) {
		this.schedules.add(schedule);
	}
}
